how to add aws ec2 ssh user¶
ec2——network & security——key pairs——create key pair:
ssh-keygen -f chenshi.pem -y > chenshi.pub useradd chenshi cat chenshi.pub >> /home/chenshi/.ssh/authorized_keys chown chenshi -R /home/chenshi/ chmod 700 /home/chenshi/.ssh chmod 600 /home/chenshi/.ssh/authorized_keys